package spring.cloud.tasks.executor.listener.report;

import spring.cloud.tasks.executor.node.TaskNodePaths;

public final class ReportControlNode {

    public static final String CONTROL_NODE = "control";
    public static final String REPORT_NODE = CONTROL_NODE + "/report";

    public static boolean isReportPath(final String jobName, final String path) {
        return TaskNodePaths.getTaskNodePath(jobName, REPORT_NODE).equals(path);
    }
}
